package com.lagou.edu.clinet;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by shixi  on 2021/1/28
 */
@FeignClient(name = "lagou-service-code")
@RequestMapping("/code")
public interface CodeService {
    /**
     * 校验验证码是否正确，0正确1错误2超时
     * @param email
     * @param code
     * @return
     */
    @RequestMapping("/validate/{email}/{code}")
    int validate(@PathVariable(value = "email") String email,
                 @PathVariable(value = "code") String code);
}
